package com.stm.bi.model;

import com.stm.framework.annotation.ResParam;

import java.util.List;

/**
 * @Description:
 * @Author: bo
 * @Date: 2023/06/26 17:32
 */
public class Title {

    @ResParam(label = "标题名")
    private String name;

    @ResParam(label = "标题编码")
    private String code;
    @ResParam(label = "子标题")
    private Object children;

    @ResParam(label = "子标题名")
    private String subName;

    public Title() {
        this.children = null;
    }
    public static Title of(String code, String name){
        return new Title().setCode(code).setName(name);
    }

    public String getName() {
        return name;
    }

    public Title setName(String name) {
        this.name = name;
        return this;
    }

    public String getCode() {
        return code;
    }

    public Title setCode(String code) {
        this.code = code;
        return this;
    }

    public String getSubName() {
        return subName;
    }

    public Title setSubName(String subName) {
        this.subName = subName;
        return this;
    }

    public Object getChildren() {
        return children;
    }

    public Title setChildren(List<Title> children) {
        this.children = children;
        return this;
    }
}
